<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Attachment
 *
 * @ORM\Table(name="attachment", options={"comment":"附件表"})
 * @ORM\Entity
 */
class Attachment
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="path", type="string", length=255, options={"default":"", "comment":"附件路径"})
     */
    private $path;

    /**
     * @var string
     *
     * @ORM\Column(name="origin_name", type="string", length=255, options={"default":"", "comment":"原始名称"})
     */
    private $originName;

    /**
     * @var string
     *
     * @ORM\Column(name="size", type="integer", options={"default":0, "comment":"大小"})
     */
    private $size;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;
}
